/*
 *  NullLine.cpp
 *  SoundController0002
 *
 *  Created by jiro on 10/06/29.
 *  Copyright 2010 jiro music. All rights reserved.
 *
 */

#include "NullLine.h"
#include "Line.h"
#include "stddef.h"
namespace sc
{
	const NullLine* NullLine::instance = NULL;

	NullLine::NullLine()
		: Line( Line::Type_Null, 0, 0, 0, 0 )
	{}
	
	NullLine::~NullLine()
	{}

	const NullLine& NullLine::GetInstance()
	{
		if ( instance == NULL )
		{
			instance = new NullLine();
		}
		return * instance;
	}

	double NullLine::GetY( double paramX ) const
	{
		return 0;
	}

	bool NullLine::IsNull() const
	{
		return true;
	}
}
